package com.woniuxy01;

import java.io.FileInputStream;
import java.io.IOException;

public class Test04 {
    public static void main(String[] args) throws IOException {
        //读数据：输入流
        FileInputStream fis = new FileInputStream("a.txt");
        //一次读取一个字节
//        System.out.println((char)fis.read());
//        System.out.println(fis.read());
//        System.out.println((char)fis.read());
//        System.out.println(fis.read());
//        System.out.println(fis.read());
        int mybyte;
        while((mybyte=fis.read())!=-1){
            System.out.println((char)mybyte);
        }
        fis.close();
    }
}
